import { defineStore } from 'pinia'

export const useUserInfoStore = defineStore('userInfoStore', {
  state: () => {
    const userInfo = ref('')
    const okCloudDiskToken = ref('')
    const tokenTimeStamp = ref(0) // 记录过期时间
    const listInfo = ref({})
    return { userInfo, okCloudDiskToken, tokenTimeStamp ,listInfo}
  },
  persist: true,
})
